package com.sinoglobal.ningxia.service;

import java.io.File;
import java.util.ArrayList;

import android.app.Service;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.IBinder;
import com.sinoglobal.ningxia.R;

/**
 * @author qiwx
 * @createdate 2014-7-1 下午5:50:32
 * @Description: 更新loading和广告默认图
 */
public class UpdateLoadingImgService extends Service {

	ArrayList<Bitmap> data;// 需要下载替换assect目录下的图片地址；

	@Override
	public IBinder onBind(Intent intent) {
		//Auto-generated method stub
		return null;
	}

	@Override
	public void onCreate() {
		//Auto-generated method stub
		super.onCreate();

	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		//Auto-generated method stub
		data = intent.getParcelableArrayListExtra("defaultImgs");
		if (data != null) {
         File loading= new File("file:/\\android_asset/loading/ad.jpg");
		
		
		}

		return super.onStartCommand(intent, flags, startId);

	}

	@Override
	public void onDestroy() {
		super.onDestroy();

	}

}
